//
//  SZYDetailScore+WCTColumnCoding.mm
//  WCDBDemo
//
//  Created by jiangdong on 2018/4/3.
//  Copyright © 2018年 jiangdong. All rights reserved.
//

#import "SZYDetailScore.h"
#import <Foundation/Foundation.h>
#import <WCDB/WCDB.h>

@interface SZYDetailScore (WCTColumnCoding) <WCTColumnCoding>
@end

@implementation SZYDetailScore (WCTColumnCoding)

//解档
+ (instancetype)unarchiveWithWCTValue:(NSData *)value
{
    return value? [NSKeyedUnarchiver unarchiveObjectWithData:value]: nil;
}
//归档
- (NSData *)archivedWCTValue
{
    return [NSKeyedArchiver archivedDataWithRootObject:self];
}

+ (WCTColumnType)columnTypeForWCDB
{
    return WCTColumnTypeBinary;
}

@end
